.editor {
  width: 800px;
  height: 100%;

  :global {
    .ck.ck-editor {
      height: 100% !important;
    }

    .ck-rounded-corners {
      height: 100%;

      .ck-editor__main {
        height: calc(100% - 50px);
        min-height: 360px;

        ul,
        ol {
          margin-left: 2.666em;
        }

        .image {
          display: block;
          margin: 0 auto !important;
          background: #fff !important;
          border: none !important;
          outline: none !important;
        }
      }
    }
  }
}

//禁止编辑隐藏头部操作栏
.editordisabled {
  width: 800px;
  height: 100%;

  :global {
    font-size: 12px !important;

    .ck,
    .ck-editor__top,
    .ck-reset_all {
      .ck-sticky-panel {
        display: none;
      }
    }

    .ck.ck-editor {
      height: 100% !important;

      ::-webkit-scrollbar {
        display: none;
        /* Chrome Safari */
      }
    }

    .ck-rounded-corners {
      height: 100%;

      .ck-editor__main {
        height: 100%;

        .ck .ck-widget__selection-handle {
          display: none;
        }

        .ck.ck-content {
          // border: none;

          ul,
          ol {
            margin-left: 2.666em;
          }

          .image {
            img {
              display: block;
              margin: 0;
              // width: 100%;
              // height: 100%;
              margin-top: -3.5px;
              padding: 0;
              border: none !important;
            }

            display: block;
            margin: 0 auto !important;
            overflow: hidden;
            background: #fff !important;
            border: 0 !important;
            outline: none !important;
          }

          .ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,
          .ck-widget.table td.ck-editor__nested-editable:focus,
          .ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,
          .ck-widget.table th.ck-editor__nested-editable:focus {
            background: #fff;
            outline: none !important;
            outline-offset: 0px;
            box-shadow: none !important;
          }

          .ck-widget.ck-widget_selected,
          .ck-widget.ck-widget_selected:hover {
            background: #fff;
            border: none !important;
            outline: none !important;
            outline-offset: 0px;
            box-shadow: none !important;
          }
        }
      }
    }
  }
}
:global {
  .ck-balloon-panel {
    z-index: 10000 !important;
  }
}
